package java3_3;

import java.util.Scanner;

/**
 * 8：输入10个数，求他们当中最大的数
 */
public class homework8 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double max = 0;
        double y = 0;
        for (int i = 0; i < 10; i++) {
            double x = scanner.nextDouble();
            if (i == 0){
                max = x;
            }
            if (x>y){
                max = x;
            }
             y = max;
        }
        System.out.println("最大的数为："+max);
    }
}
